﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.ObjectFactory;

namespace YasharEl.Infrastructure.ExceptionHandling.Configuration
{
    public partial class ReplaceExceptionHandlerConfig
    {
        public override IExceptionHandler CreateExceptionHandler(IDependencyResolver resolver)
        {
            return new ReplaceHandler(
                ExceptionMessage,
                ExceptionMessageResourceKey,
                resolver.Resolve<IMessageTranslator>(),
                ReplaceExceptionType);
        }
    }
}
